{include file="index/header" /}
<body>
<div class="panel admin-panel margin-top" id="edit">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" id="form2" action="{:url('edit')}">    
      <div class="form-group">
        <div class="label">
          <label>班级名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="class_name" data-validate="required:请输入班级名称"  value="{$data.class_name}"/>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
          <div class="label">
            <label>教程标题：</label>
          </div>
          <div class="field">
            <select name="nav_id" class="input w50" id="nav" data-validate="required:请选择教程">
              <option value="">请选择教程</option>
              {foreach name='nav_data' item='nav'}
              <option value="{$nav.nav_id}" <?php if($nav['nav_id'] == $data['nav_id']){echo 'selected';}?>>{$nav.nav_name}</option>
              {/foreach}
            </select>  
            <div class="tips"></div>
          </div>
        </div>
      <div class="form-group">
        <div class="label">
          <label>班级简介：</label>
        </div>
        <div class="field">
          <textarea class="input" name="class_desc" style="height:80px"  data-validate="required:请输入简介">{$data.class_desc}</textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
      <input type="hidden" name="class_id" value="{$data.class_id}">
    </form>
  </div>
</div>
</body></html>